package day06;

import java.io.File;
import java.util.Date;

public class Demo06 {

	public static void main(String[] args) {
		
		File dir=new File("test");
		File file=new File(dir,"demo.txt");
		
		System.out.println(dir.isDirectory());
		System.out.println(dir.isFile());
		System.out.println(file.isFile());
		
		Long dirl=dir.length();
		System.out.println(dirl);
		
		Long filel=file.length();
		System.out.println(filel);

		Long l=file.lastModified();
		Date date=new Date(l);
		System.out.println(date);
		
		Long time=dir.lastModified();
		date=new Date(time);
		System.out.println(date);
		
		boolean b=file.canRead();
		System.out.println(b);

		b=file.canWrite();
		System.out.println(b);

		b=file.isHidden();
		System.out.println(b);
		
		
		
	}

}
